package com.web;

import com.core.dto.FileUploadDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-5-29
 * Time: 下午2:54
 * To change this template use File | Settings | File Templates.
 */
@Controller
public class IndexController {

    @RequestMapping("/")
    public String lxf() {
        return "front/lxf";
    }

    @RequestMapping("/ws")
    public String websocket() {
        return "websocket";
    }

    @RequestMapping("/test")
    public String test() {
        return "test";
    }

    @RequestMapping("/model")
    public String model() {
        return "front/modelDiv";
    }

    @RequestMapping("/painter")
    public String painter() {
        return "front/painter";
    }

    @RequestMapping("/file")
    public ModelAndView file() {
        return new ModelAndView("front/file", "fileUploadDTO", new FileUploadDTO());
    }

    @RequestMapping("/model_js")
    public String modelJs() {
        return "front/modelJs";
    }

    @RequestMapping("/refuse")
    public String notWork() {
        return "front/refuse";
    }

    @RequestMapping("/admin")
    public String admin() {
        return "back/index";
    }

    @RequestMapping("/angular")
    public String angular() {
        return "front/angular";
    }

    @RequestMapping("/export_excel")
    public String exportExcel() {
        return "front/jqueryExportExcel";
    }

    @RequestMapping("/deny")
    public String deny() {
        return "deny";
    }

    @RequestMapping("/front/test")
    public String userDefaultUrl() {
        return "front/test";
    }

    @RequestMapping("/back/index")
    public String adminDefaultUrl() {
        return "back/index";
    }

    @RequestMapping("/spring/websocket")
    public String springWebSocket() {
        return "front/springWebsocket";
    }

    @RequestMapping("/spring/stomp")
    public String springStomp() {
        return "front/stomp";
    }

    @RequestMapping("/map")
    public String baiduMap() {
        return "front/baiduMap";
    }

    @RequestMapping("/console")
    public String console() {
        return "console";
    }

    @RequestMapping("/qrcode")
    public String qrcode() {
        return "qrcode";
    }

    @RequestMapping("/photo")
    public String photo() {
        return "photo";
    }

    @RequestMapping("/gk")
    public String gaokao() {
        return "gaokao";
    }

}
